// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'TechnologyLineId',
        footer: "Foots",
        cnName: '工艺路线',
        name: 'technologylinemodel',
        url: "/technologylinemodel/",
        sortName: "TechnologyLineId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"TechnologyLineName":"","TechnologyLineType":"","WorkInstruction":"","TechnologyLineStatus":"","TechnologyLineDescribe":""};
    const editFormOptions = [[{"title":"工艺名称","field":"TechnologyLineName","type":"text"}],
                              [{"dataKey":"工艺路线类型","data":[],"title":"类型（外键）","field":"TechnologyLineType","type":"select"}],
                              [{"title":"作业指导书","field":"WorkInstruction","type":"file"}],
                              [{"dataKey":"工艺状态","data":[],"title":"工艺状态","field":"TechnologyLineStatus","type":"radio"}],
                              [{"title":"工艺描述","field":"TechnologyLineDescribe","type":"textarea"}]];
    const searchFormFields = {"TechnologyLineName":"","TechnologyLineStatus":""};
    const searchFormOptions = [[{"title":"工艺名称","field":"TechnologyLineName","type":"like"},{"dataKey":"工艺状态","data":[],"title":"工艺状态","field":"TechnologyLineStatus","type":"="}]];
    const columns = [{field:'TechnologyLineId',title:'工艺id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'TechnologyLineName',title:'工艺名称',type:'string',width:110,align:'left',sort:true},
                       {field:'TechnologyLineImg',title:'工艺预览图',type:'string',width:180,align:'left'},
                       {field:'TechnologyLineType',title:'类型（外键）',type:'int',bind:{ key:'工艺路线类型',data:[]},width:110,align:'left'},
                       {field:'TechnologyLineStatus',title:'工艺状态',type:'string',bind:{ key:'工艺状态',data:[]},width:110,align:'left'},
                       {field:'TechnologyLineDescribe',title:'工艺描述',type:'string',width:180,align:'left'},
                       {field:'WorkInstruction',title:'作业指导书',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:180,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:180,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}